package com.team.cloudsharing.service.file;

import com.team.cloudsharing.dto.File;
import com.team.cloudsharing.dto.PathDTO;
import com.team.cloudsharing.dto.TextFile;

public interface FileService {
	
	public String saveFileUploaded(File file);
	
	public File downloadFile(String fileUrl);
	
//	public List<File> getListFile(long userId, long folderId);
	
	public String moveFileToTrash(File file);
	
	public String restoreFileFromTrash(File file);

	public String deleteFile(File file);

	public String renameFile(PathDTO filePath);

	public String[] splitFolderNameAndFolderPathInFilePath(String filePath);
	
	//public String moveFile(PathDTO filePath);

//	public String saveFile(String filePath, String fileName, long fileCapacity, int filePermission, String userEmail);

	public String getFileUrlByFileId(String fileId);

	public String moveFileToAnotherFolder(PathDTO pathDTO);
	
	public String copyFileToAnotherFolder(PathDTO pathDTO);

	public String createTextFile(TextFile textFile);
}
